home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 014 / columns.arc / COLUMNS.DOC next >
Encoding:
Text File  |  1984-02-03  |  1.1 KB  |  47 lines

  1. /*  COLUMNS.C
  2.  
  3.     Copyright (c) 1984, Gordon Lee Waite
  4.                 413 W. Pleasant Street
  5.                 Maquoketa, IA  52060
  6.  
  7.  
  8.     summary:   columns infile outfile [c] [w]
  9.  
  10.     arguments: infile is the input file which will be displayed in
  11.            columns
  12.  
  13.            outfile is the file which will contain the output
  14.  
  15.            c is the optional number of columns into which
  16.            infile will be split.
  17.  
  18.            w is the optional width of the output lines.
  19.            (The value of w must be larger than the value of c!)
  20.  
  21.     Note:       If an input line is too big for the output
  22.            column width, the input line is truncated to fit.
  23.  
  24.     Example:   columns myfile outfile 3
  25.  
  26.            This command line will read myfile and produce an
  27.            output file named outfile which will contain the
  28.            contents of myfile split into 3 columns.  The
  29.            program writes the output sequentially across the
  30.            columns.  That is, the program does not produce one
  31.             sorted column then another sorted column.
  32.  
  33.     If myfile contained the following:
  34.  
  35.     one
  36.     two
  37.     three
  38.     four
  39.     five
  40.  
  41.     the output would look like:
  42.  
  43.     one        two        three
  44.     four        five
  45.  
  46. */
  47.